package cwnu.sapphire.com.dto;

import cwnu.sapphire.com.entity.User;
import lombok.Data;
import java.util.Date;

@Data
public class ScoreDTO {
    /** 成绩记录，ID，主键 */
    private Integer id;
    /** 关联user表，外键 */
    private Integer userId;
    /** 正确输入字符的个数 */
    private Integer number;
    /** 正确率，0~1，保留小数点后2位 */
    private Double accuracy;
    /** 删除标志，1：删除，0：未删除 */
    private Integer deleteFlag;
    /** 创建时间 */
    private Date createTime;
    /** 更新时间 */
    private Date updateTime;
    /** 用户信息 */
    private User user;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Double getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(Double accuracy) {
        this.accuracy = accuracy;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
} 